<?php 
class FacebookResult {
    private $_error;
    private $_data;
    
    public function __construct() {
        $this->_error = FALSE;
    }
    public function error($error = NULL) {
        if(is_null($error)) {
            return $this->_error;
        }
        $this->_error = $error;
    }
    
    public function get($data = NULL) {
       return $this->_data; 
    }
    
    public function set($data) {
        $this->_data = $data;
        return $this;
    }
}